#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <qsettings.h>
#include <qtcpsocket.h>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    int lin = 0;
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
     void doData(QString aa);
     QString   execAdbCmd(const QString cmd);
     QString   getHostMacAddress();
     QString   getWMIC(const QString &cmd);
     QString getCpuName();
     QString getCpuId();
     QString getBaseboardId();
     QString generateKey();
     QString getRawKeyByP(QString p);
     QString ByteArrayToHexString(QByteArray data);
     void qtSleep(unsigned int msec);
     QString des(QString beinetkey, QString message,bool encrypt,bool mode,QString iv);
     QVector<int>    des_createKeys(QString beinetkey);
     QVector<int> des_createKeys_new(QString beinetkey);
     QString getDiskNum();
     QTcpSocket *tcpsocket;
     QString flag;
     QString imei;
     QString mac;
     QString serial;
     QString iccid;
     QString localMac;
     QSettings *settings;
     bool isLock = false;
     int  numbers=-1;
private slots:
      void connected_SLOT();
      void readyRead_Slot();
      void on_pushButton_2_clicked();

      void on_pushButton_clicked();

      void on_copt_btn_clicked();

      void on_pushButton_3_clicked();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
